package enumDemo3;

public class JavaCourse {
	
	public enum Course {
		U1,U2,U3;
	}
	
	public void searchTask(Course course){
		switch(course){
		case U1:
			System.out.println("第一单元打基础");
			break;
		case U2:
			System.out.println("第二单元可以胜任Java程序开发");
			break;
		case U3:
			System.out.println("第三单元胜任企业级Java程序开发");
			break;
		}
	}
	
	public static void main(String[] args) {
		JavaCourse jc = new JavaCourse();
		jc.searchTask(Course.U1);
		jc.searchTask(Course.U2);
		jc.searchTask(Course.U3);
	}

}
